const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 80,
    proxy: {
        '/api': { 
            target: 'http://127.0.0.1:8080',
            changeOrigin: true,
            pathRewrite: { 
                '^/api': '' 
            }
        },
        '/websocket': {
            target: 'ws://127.0.0.1:8080',
            changeOrigin: true,
            ws: true
        }
    }
}
})
